import React from 'react';
import PropTypes from 'prop-types'
import { Tag,Card } from 'antd';
import { Link } from 'dva/router';
const gridStyle = {
    width: 236, float: 'left', margin: '10px', height: '125px'
};
class TagCard extends React.Component {
    render() {

        return (
            <Link to={this.props.linkurl}>
                <Card style={gridStyle}>
                    <Tag color="blue">{this.props.title}</Tag>
                    <p>共:<e>{this.props.all}</e></p>
                    <p>本日新增问题:<e>{this.props.todaynew}</e></p>
                    <p>本月新增问题:<e>{this.props.weeknew}</e></p>
                </Card>
            </Link>
        )
    }
};

TagCard.propTypes = {
    title: PropTypes.string,
    all: PropTypes.number,
    todaynew: PropTypes.number,
    weeknew: PropTypes.number,
    linkurl: PropTypes.string
};

export default TagCard;
